package com.hts.spring05.config;

import com.hts.spring05.entity.Person;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PersonConfig {

    //    @Bean(initMethod ="init",destroyMethod = "destroy")
    @Bean
    public Person p() {
        Person person = new Person();
        person.setName("张三丰");
        return person;
    }
}
